package com.llkj.contractmanagement.contractmanagement.actor;

import android.os.Bundle;
import android.view.View;
import android.widget.ListView;

import com.llkj.contractmanagement.main.BaseFragment;
import com.llkj.contractmanagement.R;
import com.llkj.contractmanagement.contractmanagement.adapter.ActorMainAdapter;

import java.util.ArrayList;
import java.util.List;

import butterknife.Bind;

/**
 * author: dong.yj
 * created on: 2016/8/22 9:46
 * description:艺人介绍-主要作品
 */
public class ActorMainFragment extends BaseFragment {

    @Bind(R.id.lv_actor_main)
    ListView lvActorMain;
    private ActorMainAdapter adapter;
    private List<String> actorList;
    @Override
    public int getContentViewLayout() {
        return R.layout.fragment_actormain;
    }

    @Override
    public void onViewCreated(View view, Bundle savedInstanceState) {
        super.onViewCreated(view, savedInstanceState);
        init();
    }

    private void init() {
        actorList = new ArrayList<>();
        for (int i = 0; i < 10; i++) {
            actorList.add("");
        }
        adapter = new ActorMainAdapter(ctx, actorList);
        lvActorMain.setAdapter(adapter);
    }
}
